import requestPlat from '@/common/requestPlat'
import Qs from 'qs';

// 客户page
export let pageClient = (params) => {
	return requestPlat({
		method: 'get',
		url: `customer/authorize/page/${params.page}/${params.limit}`,
		params
	})
}
// 客户detail
export let detailClient = (params) => {
	return requestPlat({
		method: 'get',
		url: `customer/authorize/detail`,
		params
	})
}
// 客户add
export let addClient = (data) => {
	return requestPlat({
		method: 'post',
		url: `customer/authorize/add`,
		headers: {
			"Content-Type": 'application/json'
		},
		data
	})
}
// 客户edit
export let editClient = (data) => {
	return requestPlat({
		method: 'post',
		url: `customer/authorize/edit`,
		headers: {
			"Content-Type": 'application/json'
		},
		data
	})
}